﻿using AutoMapper;
using U.B.DoMain;
using U.B.ReadApi.Dto;

namespace U.B.ReadApi
{
    public class MappingProfile:Profile
    {
        public MappingProfile()
        {
            CreateMap<User, UserDto>().ReverseMap();
            CreateMap<Role, RoleDto>().ReverseMap();
            CreateMap<User, DepartmentUserDto>().ReverseMap();
            CreateMap<UserRole, RUDto>().ReverseMap();
            CreateMap<Menu, MenuTreeDto>().ReverseMap();

        }
    }
}
